package com.ruoyi.huanghefd.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.Data;

/**
 * 工作票模板-安全措施1
 * @TableName worksheet_template_measures1
 */
@TableName(value ="worksheet_template_measures1")
@Data
public class WorksheetTemplateMeasures1 implements Serializable {
    /**
     * mid
     */
    @TableId
    private String mid;
    /**
     * ID
     */
    private String id;

    /**
     * 工作票类型
     */
    private String wsType;

    /**
     * 排序
     */
    private String wsOrder;

    /**
     * 安全措施1
     */
    private String safetyMeasures;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        WorksheetTemplateMeasures1 other = (WorksheetTemplateMeasures1) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getWsType() == null ? other.getWsType() == null : this.getWsType().equals(other.getWsType()))
            && (this.getWsOrder() == null ? other.getWsOrder() == null : this.getWsOrder().equals(other.getWsOrder()))
            && (this.getSafetyMeasures() == null ? other.getSafetyMeasures() == null : this.getSafetyMeasures().equals(other.getSafetyMeasures()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getWsType() == null) ? 0 : getWsType().hashCode());
        result = prime * result + ((getWsOrder() == null) ? 0 : getWsOrder().hashCode());
        result = prime * result + ((getSafetyMeasures() == null) ? 0 : getSafetyMeasures().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", wsType=").append(wsType);
        sb.append(", wsOrder=").append(wsOrder);
        sb.append(", safetyMeasures=").append(safetyMeasures);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}